<html>
<head>
  <title>上海都来123网——管理导航区域</title>
  <meta name="layout" content="common_header"/>
  <script type="text/javascript">
    var preClassName = "man_nav_1";

    function list_sub_nav(Id, sortname) {
      if (preClassName != "") {
        getObject(preClassName).className = "bg_image";
      }

      if (getObject(Id).className == "bg_image") {
        getObject(Id).className = "bg_image_onclick";
        preClassName = Id;

        var getLeftFrame = function() {
          var fr = window.top.frames['leftFrame'];
          if (fr) {
            var ob = fr.outlookbar;
            ob.getbytitle(sortname);
            ob.getdefaultnav(sortname);
          } else {
            setTimeout(getLeftFrame, 10);
          }
        };
        setTimeout(getLeftFrame, 10);
      }
    }

    function showInnerText(Id) {
      var switchId = parseInt(Id.substring(8));
      var showText = "对不起没有信息！";
      switch (switchId) {
        case 1: showText = "欢迎使用上海都来123网——后台管理系统!"; break;
        case 2: showText = "system setting!"; break;
        case 3: showText = "User Manage"; break;
        case 4: showText = "Chanage Manage"; break;
        case 5: showText = "Ad AND news!"; break;
      }
      getObject('show_text').innerHTML = showText;
    }

    //获取对象属性兼容方法
    function getObject(objectId) {
      if (document.getElementById && document.getElementById(objectId)) {
        // W3C DOM
        return document.getElementById(objectId);
      } else if (document.all && document.all(objectId)) {
        // MSIE 4 DOM
        return document.all(objectId);
      } else if (document.layers && document.layers[objectId]) {
        // NN 4 DOM.. note: this won't find nested layers
        return document.layers[objectId];
      } else {
        return false;
      }
    }

    function initnav() {
      var item = jQuery("li:eq(0)")
      if (item.length) {
        item.trigger("click")
      }
    }

    jQuery(initnav);
  </script>
</head>
<body>
<div id="nav">
  <ul>
    <g:if test="${sysUserInfo.permission[1]!=48}">
      <li id="man_nav_1" onclick="list_sub_nav(id, '楼盘管理')" class="bg_image">楼盘管理</li>
    </g:if>
    <g:if test="${sysUserInfo.permission[2]!=48}">
      <li id="man_nav_2" onclick="list_sub_nav(id, '信息管理')" class="bg_image">信息管理</li>
    </g:if>
    <g:if test="${sysUserInfo.permission[3]!=48}">
      <li id="man_nav_4" onclick="list_sub_nav(id, '用户管理')" class="bg_image">用户管理</li>
    </g:if>
    <g:if test="${sysUserInfo.permission[4]!=48}">
      <li id="man_nav_5" onclick="list_sub_nav(id, '链接管理')" class="bg_image">链接管理</li>
    </g:if>
    <g:if test="${sysUserInfo.permission[5]!=48}">
      <li id="man_nav_6" onclick="list_sub_nav(id, '报表统计')" class="bg_image">报表统计</li>
    </g:if>
    <g:if test="${sysUserInfo.permission[6]!=48}">
      <li id="man_nav_9" onclick="list_sub_nav(id, '系统管理')" class="bg_image">系统管理</li>
    </g:if>
    <g:if test="${sysUserInfo.permission[7]!=48}">
      <li id="man_nav_8" onclick="list_sub_nav(id, '消息管理')" class="bg_image">消息管理</li>
    </g:if>
  </ul>
</div>
<div id="sub_info">&nbsp;&nbsp;<img src="${resource(dir: '/images/admin_ui/', file: 'hi.gif', absolute: true)}"/>&nbsp;<span id="show_text">欢迎使用上海都来123网——后台管理系统!</span></div>
</body>
</html>